package stx.com.controller;


import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import stx.com.entity.TDiary;
import stx.com.service.DiaryService;
@Controller
public class LookController {

	@Resource
	private DiaryService diaryService;

	@RequestMapping("hee.do")
	public String look(TDiary diary,HttpServletRequest request){
		System.out.println("sdasd"+diary.getAccounts());
			TDiary diarys=diaryService.look(diary);			
			request.setAttribute("diarys1",diarys );
			return "1";
		
	
	}	
}
